'use strict';

const complaintsController = require('../../app/controller/complaints.controller.js');

module.exports = function(app) {
    app.route('/complaints/add')
        .post(complaintsController.receiveComplaints);
    app.route('/complaints/modify')
        .post(complaintsController.update);
    app.route('/complaints/gets')
        .get(complaintsController.getlist);
    app.route('/complaints/getsOnOrDown')
    .get(complaintsController.getlist);
};